Skip to content

Conversation

matthewdale
Copy link
Collaborator

GODRIVER-3412

Summary

Add index hint support for Distinct.

Background & Motivation

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the review-priority-low Low Priority PR for Review: within 3 business days label Nov 11, 2024
@mongodb-drivers-pr-bot
Copy link
Contributor

API Change Report

./v2/mongo/options

compatible changes

(*DistinctOptionsBuilder).SetHint: added
DistinctOptions.Hint: added

./v2/x/mongo/driver/operation

compatible changes

(*Distinct).Hint: added

Comment on lines 65 to 68
// SetHint sets the value for the Comment field. Specifies a string or document that
// will be included in server logs, profiling logs, and currentOp queries to help trace
// the operation. The default value is nil, which means that no comment will be included
// in the logs.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update the comments.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Will fix that.

Copy link
Collaborator

@qingyang-hu qingyang-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@matthewdale matthewdale merged commit 27ee659 into mongodb:master Nov 15, 2024
31 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-priority-low Low Priority PR for Review: within 3 business days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants